home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / shell / taskmana / src / srcgui.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-13  |  1.2 KB  |  55 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    sourceMenuID ;
  9. extern int    sourceMenuItemID ;
  10. extern int    apliMenuExecFunc() ;
  11.  
  12. #define ALIGN    4
  13. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  14.  
  15. /*    MMI_init 用データ    */
  16.  
  17. /*    ヘッダ    */
  18.  
  19. MMIINIT    initDataSRCGUI = { "MmiInit",   2, 0 } ;
  20.  
  21. /* sourceMenuID */
  22.  
  23. static MMIPACKET d001 = {    &sourceMenuID,
  24.                             NULL,
  25.                             &MJ_MENUL40,
  26.                             OFFSET(MENUL40),
  27.                             MS_UNSELECT
  28.                         } ;
  29. static MENUL40    d001d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SKEYL40 | MS_SAVEL40,
  30.                                0,   0, 127, 113, 8,15, 8,
  31.                             MS_SRECTL40 | MS_BFRAMEL40 | MS_FRAMEL40,
  32.                             NULL,   0
  33.                         } ;
  34.  
  35. /* sourceMenuItemID */
  36.  
  37. static MMIPACKET d002 = {    &sourceMenuItemID,
  38.                             &sourceMenuID,
  39.                             &MJ_MITEML40,
  40.                             0,
  41.                             MS_NONE
  42.                         } ;
  43. static MITEML40    d002d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40 | MS_SKEYL40,
  44.                               18,  73, 129,  93, 8,15, 8,
  45.                             MS_NONEL40,
  46.                             apliMenuExecFunc,
  47.                             0x0000,  -1,
  48.                             NULL,
  49.                                1,  12,  12,
  50.                             MS_NONEL40,
  51.                                0,   0,
  52.                                0
  53.                         } ;
  54.  
  55.